<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions targetNamespace="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" id="_WQF40OPpEeK3Tvv6A1zV4A">
  <bpmn2:process id="processWithSubProcess" name="Process with SubProcess" isExecutable="true">
    <bpmn2:startEvent id="StartEvent_1" name="Start Event">
      <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
    </bpmn2:startEvent>
    <bpmn2:sequenceFlow id="SequenceFlow_1" sourceRef="StartEvent_1" targetRef="SubProcess_1"/>
    <bpmn2:subProcess id="SubProcess_1" name="Sub Process">
      <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
      <bpmn2:multiInstanceLoopCharacteristics>
        <bpmn2:loopCardinality xsi:type="bpmn2:tFormalExpression">5</bpmn2:loopCardinality>
      </bpmn2:multiInstanceLoopCharacteristics>
      <bpmn2:startEvent id="StartEvent_2" name="Start Event">
        <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
      </bpmn2:startEvent>
      <bpmn2:serviceTask id="ServiceTask_1" camunda:class="org.camunda.bpm.engine.test.api.runtime.AddVariablesService" name="Service Task">
        <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
        <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>
      </bpmn2:serviceTask>
      <bpmn2:sequenceFlow id="SequenceFlow_3" sourceRef="StartEvent_2" targetRef="ServiceTask_1"/>
      <bpmn2:parallelGateway id="ParallelGateway_1" name="Parallel Gateway">
        <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
        <bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing>
        <bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing>
      </bpmn2:parallelGateway>
      <bpmn2:sequenceFlow id="SequenceFlow_4" sourceRef="ServiceTask_1" targetRef="ParallelGateway_1"/>
      <bpmn2:sequenceFlow id="SequenceFlow_5" sourceRef="ParallelGateway_1" targetRef="UserTask_1"/>
      <bpmn2:userTask id="UserTask_1" name="User Task">
        <bpmn2:incoming>SequenceFlow_5</bpmn2:incoming>
        <bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing>
      </bpmn2:userTask>
      <bpmn2:sequenceFlow id="SequenceFlow_6" sourceRef="ParallelGateway_1" targetRef="UserTask_2"/>
      <bpmn2:userTask id="UserTask_2" name="User Task">
        <bpmn2:incoming>SequenceFlow_6</bpmn2:incoming>
        <bpmn2:outgoing>SequenceFlow_8</bpmn2:outgoing>
      </bpmn2:userTask>
      <bpmn2:endEvent id="EndEvent_2" name="End Event">
        <bpmn2:incoming>SequenceFlow_7</bpmn2:incoming>
      </bpmn2:endEvent>
      <bpmn2:sequenceFlow id="SequenceFlow_7" sourceRef="UserTask_1" targetRef="EndEvent_2"/>
      <bpmn2:endEvent id="EndEvent_3" name="End Event">
        <bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>
      </bpmn2:endEvent>
      <bpmn2:sequenceFlow id="SequenceFlow_8" sourceRef="UserTask_2" targetRef="EndEvent_3"/>
    </bpmn2:subProcess>
    <bpmn2:sequenceFlow id="SequenceFlow_2" sourceRef="SubProcess_1" targetRef="EndEvent_1"/>
    <bpmn2:endEvent id="EndEvent_1" name="End Event">
      <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
    </bpmn2:endEvent>
  </bpmn2:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1" name="Process with SubProcess">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="processWithSubProcess">
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_22" bpmnElement="StartEvent_1">
        <dc:Bounds height="36.0" width="36.0" x="193.0" y="329.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_BPMNShape_SubProcess_8" bpmnElement="SubProcess_1" isExpanded="true">
        <dc:Bounds height="287.0" width="613.0" x="312.0" y="206.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_22" targetElement="_BPMNShape_SubProcess_8">
        <di:waypoint xsi:type="dc:Point" x="229.0" y="347.0"/>
        <di:waypoint xsi:type="dc:Point" x="270.0" y="347.0"/>
        <di:waypoint xsi:type="dc:Point" x="270.0" y="349.0"/>
        <di:waypoint xsi:type="dc:Point" x="312.0" y="349.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="254.0" y="347.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_EndEvent_30" bpmnElement="EndEvent_1">
        <dc:Bounds height="36.0" width="36.0" x="1032.0" y="329.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="22.0" width="65.0" x="1018.0" y="370.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_SubProcess_8" targetElement="_BPMNShape_EndEvent_30">
        <di:waypoint xsi:type="dc:Point" x="924.0" y="349.0"/>
        <di:waypoint xsi:type="dc:Point" x="978.0" y="349.0"/>
        <di:waypoint xsi:type="dc:Point" x="978.0" y="347.0"/>
        <di:waypoint xsi:type="dc:Point" x="1032.0" y="347.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="950.0" y="349.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_23" bpmnElement="StartEvent_2">
        <dc:Bounds height="36.0" width="36.0" x="336.0" y="329.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="22.0" width="70.0" x="319.0" y="370.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_BPMNShape_ServiceTask_13" bpmnElement="ServiceTask_1">
        <dc:Bounds height="80.0" width="100.0" x="422.0" y="307.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="_BPMNShape_StartEvent_23" targetElement="_BPMNShape_ServiceTask_13">
        <di:waypoint xsi:type="dc:Point" x="372.0" y="347.0"/>
        <di:waypoint xsi:type="dc:Point" x="422.0" y="347.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="397.0" y="347.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_ParallelGateway_3" bpmnElement="ParallelGateway_1">
        <dc:Bounds height="50.0" width="50.0" x="572.0" y="322.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="22.0" width="104.0" x="545.0" y="377.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_ServiceTask_13" targetElement="_BPMNShape_ParallelGateway_3">
        <di:waypoint xsi:type="dc:Point" x="522.0" y="347.0"/>
        <di:waypoint xsi:type="dc:Point" x="572.0" y="347.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="547.0" y="347.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_UserTask_5" bpmnElement="UserTask_1">
        <dc:Bounds height="80.0" width="100.0" x="708.0" y="240.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="_BPMNShape_ParallelGateway_3" targetElement="_BPMNShape_UserTask_5">
        <di:waypoint xsi:type="dc:Point" x="597.0" y="322.0"/>
        <di:waypoint xsi:type="dc:Point" x="597.0" y="280.0"/>
        <di:waypoint xsi:type="dc:Point" x="665.0" y="280.0"/>
        <di:waypoint xsi:type="dc:Point" x="708.0" y="280.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="597.0" y="297.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_UserTask_6" bpmnElement="UserTask_2">
        <dc:Bounds height="80.0" width="100.0" x="708.0" y="396.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_6" sourceElement="_BPMNShape_ParallelGateway_3" targetElement="_BPMNShape_UserTask_6">
        <di:waypoint xsi:type="dc:Point" x="597.0" y="372.0"/>
        <di:waypoint xsi:type="dc:Point" x="597.0" y="436.0"/>
        <di:waypoint xsi:type="dc:Point" x="708.0" y="436.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="0.0" width="0.0" x="606.0" y="436.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_EndEvent_31" bpmnElement="EndEvent_2">
        <dc:Bounds height="36.0" width="36.0" x="858.0" y="262.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="SequenceFlow_7" sourceElement="_BPMNShape_UserTask_5" targetElement="_BPMNShape_EndEvent_31">
        <di:waypoint xsi:type="dc:Point" x="808.0" y="280.0"/>
        <di:waypoint xsi:type="dc:Point" x="858.0" y="280.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="_BPMNShape_EndEvent_32" bpmnElement="EndEvent_3">
        <dc:Bounds height="36.0" width="36.0" x="858.0" y="418.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_8" bpmnElement="SequenceFlow_8" sourceElement="_BPMNShape_UserTask_6" targetElement="_BPMNShape_EndEvent_32">
        <di:waypoint xsi:type="dc:Point" x="808.0" y="436.0"/>
        <di:waypoint xsi:type="dc:Point" x="858.0" y="436.0"/>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>